package com.oldwine.order.mapper;

import com.oldwine.feign.pojo.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface OrderMapper {

    /**
     * 根据订单id查询订单信息
     * @param id 订单id
     * @return 返回订单对象
     */
    @Select("select * from tb_order where id = #{id}")
    Order findOrderById(Long id);
}
